﻿using DataAccessObject;
using DataAccessObject.DAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUSINESS
{
    public static class PhanCongBUS
    {
        static PhanCongDAO dao = new PhanCongDAO();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="lophoc"></param>
        /// <returns></returns>
        public static List<PHANCONG> getPhanCongByLopHoc(LOPHOC lophoc)
        {
            return dao.getPhanCongByLopHoc(lophoc);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="phancong"></param>
        /// <param name="giaovien"></param>
        public static PHANCONG updatePhanCong(PHANCONG phancong, GIAOVIEN giaovien)
        {
            return dao.updatePhanCong(phancong, giaovien);
        }
    }
}
